<?php

	
	header('Content-Type: text/html; charset=utf-8');
	
	$content = file_get_contents('1.txt');
	$content = explode('↘ 分类：</span><a href="Class.aspx?id=3" class="zm">A',$content);
	$content = explode('<!--  分类结束  -->',$content[1]);
	$content = $content[0];

	//直接获取连接
	$match_str = "/<a href=\"Type.aspx\?id=(.*)\">(.*)<\/a>/isU";
	preg_match_all($match_str,$content,$urln);
	$id = $urln[1];
	$name = $urln[2];
	foreach ($id as $k=>$v) {
		echo $v . '〓' . trim($name[$k]);
		echo "\r\n";
	}
	
?>